<template>
    <div class="sy_body">
        <div class="title"><span></span>用户评论</div>

            <template>
            <el-table
                    :data="ChapterData"
                    stripe
                    style="width: 100%">
                <el-table-column
                        prop="uid"
                        label="用户名称"
                       >
                </el-table-column>
                <el-table-column
                        prop="description"
                        label="评论内容"
                       >
                </el-table-column>
                <el-table-column
                        prop="gmtCreate"
                        label="评论时间">
                </el-table-column>
                <el-table-column
                        prop="comdate"
                        label="评价">
                    <template slot-scope="scope">
                        <el-tag type="warning" effect="dark" v-if="scope.row.degree==1">差评</el-tag>
                        <el-tag type="success" effect="dark" v-if="scope.row.degree==0">好评</el-tag>
                    </template>
                </el-table-column>
            </el-table>
            </template>

    </div>

</template>

<script>
    export default {

        name: "Syllabus",
        //父传子
        // props: ['ChapterData'],
        props: ['ChapterData','TeacherStatus'],
        data() {
            return {
                HuiYuanId: window.sessionStorage.getItem("memberId"),
                // id:this.$route.params.id,
                videoId:'',
                isTitileUpdate:true,
                videoSourceId:'',
                //    订单状态
                playStatus: 0,
            }
        },

        created() {
            // alert("222")

        },
        mounted() {
            window.addEventListener('scroll', this.showbtn, true);  // 注册滚动事件
        },



    }
</script>

<style lang="scss" rel="stylesheet/scss">
    .sy_body {
        .title {
            border-left: 3px solid #000;
            padding-left: 12px;
            font-size: 16px;
            color: #000;
            font-weight: 700;
            margin-bottom: 25px;
        }
    }

    .chapter_info {
        width: 839px;
        margin: 0 auto;
        font-size: 14px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 30px;
        padding-bottom: 20px;

        &:last-child {
            border: none;
        }

        .chapter_name {
            font-size: 14px;
            font-weight: 700;
            color: #333;
            padding-bottom: 10px;
        }
    }

    .period_info {
        position: relative;

        a {
            display: inline-block;
            font-size: 12px;
            width: 66px;
            height: 26px;
            text-align: center;
            line-height: 26px;
            color: #999;
            position: absolute;
            right: 0px;
            top: 10px;
            border: 1px solid rgb(153, 153, 153);
            border-radius: 13px;

            &:hover {
                color: rgb(213, 20, 35);
                text-decoration: none;
                border: 1px solid rgb(213, 20, 35);
                cursor: pointer;
            }
        }
    }

    .period_top {
        width: 627px;
        padding-left: 20px;
        height: 46px;
        line-height: 46px;
        position: relative;
        padding-right: 104px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        .video_time {
            position: absolute;
            right: 0;
        }

        .period_num {
            margin-right: 6px;
        }

        .period_video {
            display: inline-block;
            width: 21px;
            height: 21px;
            position: relative;
            top: 6px;
            margin-right: 10px;
            background: url(../../assets/image/video1.svg) center center;
            background-size: 21px 21px;

            &.no_v {
                background: url(../../assets/image/no_video.svg) no-repeat center center;
            }
        }

        &:hover, &.on {
            cursor: pointer;
            background: rgb(242, 242, 242);
            color: rgb(213, 20, 35);

            .period_video {
                background: url(../../assets/image/video.png) center center;

                &.no_v {
                    background: url(../../assets/image/no_video.svg) no-repeat center center;
                }
            }
        }
    }
</style>